package edu.ynu.se.xiecheng.achitectureclass.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author laruui
 * @since 2023-12-07
 */

@TableName("t_order")
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TOrder对象", description = "")
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单主键Id")
    @TableId(value = "Id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "流水号")
    private String sn;

    @ApiModelProperty(value = "用户Id")
    private String userId;

    @ApiModelProperty(value = "门店Id")
    private String shopId;

    @ApiModelProperty(value = "商品Id")
    private String itemId;

    @ApiModelProperty(value = "门店姓名")
    private String shopName;

    @ApiModelProperty(value = "商品姓名")
    private String itemName;

    @ApiModelProperty(value = "商品数量")
    private Integer itemNumber;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal itemPrice;

    @ApiModelProperty(value = "商品图片")
    private String itemImage;

    @ApiModelProperty(value = "商品总价")
    private String total;

    @ApiModelProperty(value = "商品状态 enter-确认/retuen-退款")
    private String status;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic()
    private String isDelete;
}
